package dao;

import java.util.Date;
import java.util.List;

import bean.Article;

public interface ArticleDao {
	public boolean addArticle(Article article);
	public boolean modifyArticle(Article article);
	public boolean deleteArticle(Article article);
	public Article findArticleById(int id);
	public List findArticlesByDate(Date date);
	public List findArticlesByView(int view);
	public List findArticlesByUsername(String username);
	
	public List findArticlesByArticleClassId(int id);
	public List findArticlesByTitle(String name);
	public List findRecentArticles();
}
